package com.micro.ai.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * 网关应用启动类
 * 
 * @author micro-ai
 * @since 0.0.1
 */
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = {
    "com.micro.ai.gateway",       // 扫描gateway模块
    "com.micro.ai.commons.util",  // 只扫描commons的util包（JwtUtils等工具类）
    "com.micro.ai.commons.constant" // 扫描commons的constant包（常量）
})
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }
}
